package example.stream;

import java.util.Date;

public class People {
    private String name;
    private Integer age;
    private Long timestamp;
    private Integer sex;

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public People() {
    }

    public People(String name, Integer age, Long timestamp,Integer sex) {
        this.name = name;
        this.age = age;
        this.timestamp = timestamp;
        this.sex = sex;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "People{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", timestamp=" + timestamp +
                ", sex=" + sex +
                '}';
    }
}
